<?php
	session_start();
	ob_start();
	$page='';
	if(isset($_GET['page']))
		$page =$_GET['page'];
	$act='';
	if(isset($_GET['act']))
		$act =$_GET['act'];
	$id='';
	if(isset($_GET['id']))
		$id =$_GET['id'];
	$masp='';
	if(isset($_GET['masp']))
		$masp =$_GET['masp'];
	$item='';
	if(isset($_GET['item']))
		$item =$_GET['item'];
	include('../config.php');
	include('../includes/connect.php');

	//include('ckeditor/ckeditor.php');
	
if(!isset($_SESSION['username']))
{
	include('login.php');
}else{
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 
	<head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		
		<title>Thietbicachdien.com</title>
		
		<!--                       CSS                       -->
		<link href="../images/logo-tbcd.png" rel="shortcut icon" type="image/x-icon">
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
	  
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />	
		
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="resources/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="resources/css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
  		<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
        <script type="text/javascript" src="ckeditor/styles.js"></script>
        
		<!-- jQuery -->
		<script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></script>
		
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="resources/scripts/facebox.js"></script>
		
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>

        <!--Ajax search-->
        <script type="text/javascript" src="js/jquery.watermark.js"></script>
        <script type="text/javascript" src="includes/sanpham/key_danhmuc_id.js"></script>

        <!-- Internet Explorer .png-fix -->
		<!--[if IE 6]>
			<script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->
		
	</head>
  
	<body>
        <div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
            <?php
                include('templates/_sidebar.php');
                include('templates/_main_content.php');
            ?>
            
        </div>
	</body>
  
</html>
<?php
}

?>